package social.hub.oauth;

public class OAuthConfig {

	private String appId;
	private String apiKey;
	private String apiSecret;

	private String callbackUrl;
	private String scope;

	private OAuthVersion version;

	private String requestTokenUrl;
	private String authorizeUrl;
	private String accessTokenUrl;

	public String getAccessTokenUrl() {
		return accessTokenUrl;
	}

	public String getApiKey() {
		return apiKey;
	}

	public String getApiSecret() {
		return apiSecret;
	}

	public String getAppId() {
		return appId;
	}

	public String getAuthorizeUrl() {
		return authorizeUrl;
	}

	public String getCallbackUrl() {
		return callbackUrl;
	}

	public String getRequestTokenUrl() {
		return requestTokenUrl;
	}

	public String getScope() {
		return scope;
	}

	public OAuthVersion getVersion() {
		return version;
	}

	public boolean isOAuthVersion1() {
		return !isOAuthVersion2();
	}

	public boolean isOAuthVersion2() {
		return OAuthVersion.V_2.equals(version);
	}

	public void setAccessTokenUrl(String accessTokenUrl) {
		this.accessTokenUrl = accessTokenUrl;
	}

	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}

	public void setApiSecret(String apiSecret) {
		this.apiSecret = apiSecret;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public void setAuthorizeUrl(String authorizeUrl) {
		this.authorizeUrl = authorizeUrl;
	}

	public void setCallbackUrl(String callbackUrl) {
		this.callbackUrl = callbackUrl;
	}

	public void setRequestTokenUrl(String requestTokenUrl) {
		this.requestTokenUrl = requestTokenUrl;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public void setVersion(OAuthVersion version) {
		this.version = version;
	}

}
